projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c775eb
)
entry: handle NULL cursor when releasing reference
author
Christian Hergert
<chergert@redhat.com>
Tue, 27 Sep 2016 21:09:02 +0000
(14:09 -0700)
committer
Christian Hergert
<chergert@redhat.com>
Tue, 27 Sep 2016 21:09:02 +0000
(14:09 -0700)
If we happen to have gotten NULL back for a cursor, then we
need to check before unreffing it.
gtk/gtkentry.c
patch
|
blob
|
history
diff --git
a/gtk/gtkentry.c
b/gtk/gtkentry.c
index 35f9e691a403deede588fbc0dec015d5849ca125..cfe79a707689949c860e7d68f927c25b07dfebd4 100644
(file)
--- a/
gtk/gtkentry.c
+++ b/
gtk/gtkentry.c
@@
-3364,7
+3364,7
@@
gtk_entry_realize (GtkWidget *widget)
gtk_widget_register_window (widget, priv->text_area);
if (attributes_mask & GDK_WA_CURSOR)
- g_
object_unref (
attributes.cursor);
+ g_
clear_object (&
attributes.cursor);
gtk_im_context_set_client_window (priv->im_context, priv->text_area);